<?php
namespace functions\attributes\components\LinkTree;

function depthPre($content)
{
	if (!$content->AttributeExists('depth') || $content->GetAttribute('depth') < 1)
	{
		$content->SetAttribute('depth', 1);
	}
}